
import Vue from 'vue'
import VueRouter from './vue-router'
import Home from '../views/Home.vue'
import Info from '../views/Info.vue'

Vue.use(VueRouter)

const routes = [
    {
        path : '/',
        name : "Home",
        component : Home
    },
    {
        path : '/about',
        name : "About",
        component : () => import('../views/About.vue'),
        children : [
            {
                path : '/about/info',
                name : "Info",
                component : Info
            },
        ]
    },
]
const router = new VueRouter(routes)
export default router 